import { local as storage } from '@/utils/storage'

const TOKEN_KEY = 'token'

const setToken = (token) => {
  storage.setItem(TOKEN_KEY, token)
}

const getToken = () => {
  return storage.getItem(TOKEN_KEY)
}

const removeToken = () => {
  storage.delItem(TOKEN_KEY)
}

export {
  setToken,
  getToken,
  removeToken
}